package cn.servlet;

import cn.bean.Vv;
import cn.dao.VvDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("vv")
public class Vvimpl implements VvInter{

    @Autowired
    public VvDao dao;

    @Override
    public List<Vv> findAll() {
        return dao.findAll();
    }

    @Override
    public Vv findById(int id) {
        return dao.findById(id);
    }

    @Override
    public int insert(Vv vv) {
        return dao.insert(vv);
    }

    @Override
    public int delete(int id) {
        return dao.delete(id);
    }

    @Override
    public int update(Vv vv) {
        return dao.update(vv);
    }
}
